package dao

import (
	"time"
)

// 这是 LiWechatMessage 的全局公开dao对象
var LiWechatMessageDao = liWechatMessageDao{}

// 这是 li_wechat_message表 的实体类
type LiWechatMessage struct {
	Id          int       `json:"id" form:"id" v:"id"`
	CreateBy    string    `json:"create_by" form:"create_by" v:"create_by"`
	CreateTime  time.Time `json:"create_time" form:"create_time" v:"create_time"`
	DeleteFlag  bool      `json:"delete_flag" form:"delete_flag" v:"delete_flag" gm:"delete_flag"`
	UpdateBy    string    `json:"update_by" form:"update_by" v:"update_by"`
	UpdateTime  time.Time `json:"update_time" form:"update_time" v:"update_time"`
	Code        string    `json:"code" form:"code" v:"code"`
	Enable      bool      `json:"enable" form:"enable" v:"enable"`
	First       string    `json:"first" form:"first" v:"first"`
	Keywords    string    `json:"keywords" form:"keywords" v:"keywords"`
	Name        string    `json:"name" form:"name" v:"name"`
	OrderStatus string    `json:"order_status" form:"order_status" v:"order_status"`
	Remark      string    `json:"remark" form:"remark" v:"remark"`
}

// 注意:这是 LiWechatMessage 的私有dao对象
type liWechatMessageDao struct {
	Insert func(arg LiWechatMessage) int             //插入一条记录
	Update func(arg LiWechatMessage) int             //更新一条记录
	Delete func(arg LiWechatMessage) int             //删除一条记录
	Select func(arg LiWechatMessage) LiWechatMessage //获取一条记录
}
